﻿using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Text;
using vJine.Core.ORM;
using vJine.Core;

namespace vJineCore_QuickStart {
    public class My_Custom_Adapter : vJine.Core.ORM.IDbAdapter<My_Custom_Adapter> {
        public override DbCommand PrepareInsert<Tentity>(string table_name, IList<Class<Tentity>.Property> Keys) {
            return base.PrepareInsert<Tentity>(table_name, Keys);
        }

        public override DbCommand PrepareDelete<Tentity>(string table_name, Class<Tentity>.Where Where) {
            return base.PrepareDelete<Tentity>(table_name, Where);
        }

        public override DbCommand PrepareUpdate<Tentity>(string table_name, Class<Tentity>.Set Set, Class<Tentity>.Where Where) {
            return base.PrepareUpdate<Tentity>(table_name, Set, Where);
        }

        public override DbCommand PrepareQuery<Tentity>(int max, List<Class<Tentity>.Property> fields, string table_name, Class<Tentity>.Where where, List<Class<Tentity>.Property> orders) {
            return base.PrepareQuery<Tentity>(max, fields, table_name, where, orders);
        }

        public override DbCommand PrepareCreate<Tdto>(string table_name) {
            return base.PrepareCreate<Tdto>(table_name);
        }

        public override DbCommand PrepareDrop<Tdto>(bool IfExists, string table_name) {
            return base.PrepareDrop<Tdto>(IfExists, table_name);
        }
    }
}
